package com.docshare.upload;

import java.util.ArrayList;

import org.red5.io.amf3.ByteArray;

public class UploadInfo {
    public String fileMD5ID = null;
    public ArrayList<BlockInfo> blocks = new ArrayList<BlockInfo>();

    public void writeData(ByteArray barr) {
        Util.writeString(barr, fileMD5ID);
        barr.writeInt(blocks.size());

        for(int i = 0; i < blocks.size(); i++) {
            blocks.get(i).writeData(barr);
        }
    }
}
